/**
 * 业务异常
 */
package com.gamutsoft.amb.common.exception;

/**
 * @author leo.zhu
 * 
 */
public class BusinessException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3836586534822069126L;

	public BusinessException() {
		super("Error occurred in SO application.");
	}

	//public BusinessException(String message) {
		//super(message);
	//}

	public BusinessException(String message, Throwable cause) {
		super(message);

	}

	public BusinessException(Throwable cause) {
		super(cause);
	}
  private String errorCode;
  private String message;

  public BusinessException(String errorCode)
  {
    this.errorCode = errorCode;
  }

  public BusinessException(String errorCode, String message) {
    this.errorCode = errorCode;
    this.message = message;
  }

 
  public BusinessException(String errorCode, String message, Throwable cause) {
    super(cause);
    this.message = message;
    this.errorCode = errorCode;
  }

  public String getErrorCode() {
    return this.errorCode;
  }

  public void setErrorCode(String errorCode) {
    this.errorCode = errorCode;
  }

  public String getMessage() {
    return this.message;
  }

  public void setMessage(String message) {
    this.message = message;
  }
}
